#!/bin/bash

filename="abc.def.txt"

echo -e '${filename}' "\t=> " "${filename}"
echo -e '${filename%.*}' "\t=> " "${filename%.*}"
echo -e '${filename%%.*}' "=> " "${filename%%.*}"

